package com.zhongkeruan.order.hystrix.impl;

import com.zhongkeruan.common.constants.StatusCode;
import com.zhongkeruan.common.model.Product;
import com.zhongkeruan.common.vo.Result;
import com.zhongkeruan.order.hystrix.ProductHystrix;
import org.springframework.stereotype.Component;

/**
 * @author yangyao
 * @Description: ProductHystrixImpl
 * @date 2019/1/16 11:49
 */
@Component
public class ProductHystrixImpl implements ProductHystrix {
    public Result addProduct(Product product) {
        return new Result(StatusCode.TIMEOUT,"请求超时");
    }
}
